package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.EmpModifyCompanyAddDTO;
import org.jsola.hr.dto.EmpModifyCompanyUpdateDTO;
import org.jsola.hr.query.EmpModifyCompanyQuery;
import org.jsola.hr.vo.EmpModifyCompanyListVO;
import org.jsola.hr.vo.EmpModifyCompanyVO;

import java.util.List;

/**
 * 员工更换用工单位
 *
 * @author zhr
 */
@Api(tags = "hr-员工更换用工单位")
public interface IEmpModifyCompanyControllerAPI {

    /**
     * 新增员工更换用工单位
     * @param empModifyCompanyAddDTO 员工更换用工单位新增实体
     * @return 员工更换用工单位展示对象
     */
    @ApiOperation(value = "新增员工更换用工单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyCompanyAddDTO", dataType = "EmpModifyCompanyAddDTO", value = "新增员工更换用工单位", paramType = "body")
    })
    Result<EmpModifyCompanyVO> save(EmpModifyCompanyAddDTO empModifyCompanyAddDTO);


    /**
     * 修改员工更换用工单位
     * @param empModifyCompanyUpdateDTO 员工更换用工单位
     * @return 更新数量
     */
    @ApiOperation(value = "修改员工更换用工单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyCompanyUpdateDTO", dataType = "EmpModifyCompanyUpdateDTO", value = "修改员工更换用工单位", paramType = "body")
    })
    Result<Integer> update(EmpModifyCompanyUpdateDTO empModifyCompanyUpdateDTO);




    /**
     * 删除单个员工更换用工单位，彻底删除
     * @param empModifyCompanyId 员工更换用工单位id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个员工更换用工单位，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyCompanyId", dataType = "String", value = "员工更换用工单位id", paramType = "path")
    })
    Result<Integer> delete(String empModifyCompanyId);


    /**
     * 批量删除员工更换用工单位，彻底删除
     * @param empModifyCompanyIds 员工更换用工单位id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除员工更换用工单位，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyCompanyIds", dataType = "String[]", value = "员工更换用工单位id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] empModifyCompanyIds);


    /**
     * 根据员工更换用工单位id查询员工更换用工单位详情
     * @param empModifyCompanyId 员工更换用工单位id
     * @return 员工更换用工单位详情
     */
    @ApiOperation(value="根据员工更换用工单位id查询员工更换用工单位详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyCompanyId", dataType = "String", value = "员工更换用工单位id", paramType = "path")
    })
    Result<EmpModifyCompanyVO> findById(String empModifyCompanyId);


    /**
     * 查询员工更换用工单位
     * @param empModifyCompanyQuery 员工更换用工单位查询参数
     * @return page
     */
    @ApiOperation(value="查询员工更换用工单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyCompanyQuery", dataType = "EmpModifyCompanyQuery", value = "员工更换用工单位查询参数", paramType = "query")
    })
    Result<List<EmpModifyCompanyListVO>> listAll(EmpModifyCompanyQuery empModifyCompanyQuery);


     /**
     * 分页查询员工更换用工单位
     * @param empModifyCompanyQuery 员工更换用工单位查询参数
     * @return page
     */
    @ApiOperation(value="分页查询员工更换用工单位")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyCompanyQuery", dataType = "EmpModifyCompanyQuery", value = "员工更换用工单位查询参数", paramType = "query")
    })
    Result<Page<EmpModifyCompanyListVO>> page(EmpModifyCompanyQuery empModifyCompanyQuery);


}

